package com.sprouting.ops;

import cn.hutool.core.io.FileUtil;
import org.dromara.x.file.storage.spring.EnableFileStorage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 入口
 */
@MapperScan({"com.sprouting.ops.**.dao"})
@SpringBootApplication
@ServletComponentScan
@EnableAsync
@EnableFileStorage
@EnableScheduling
public class OpsServerApplication {

    public static void main(String[] args) {
        // 启动前删除数据库，开发阶段使用
        // FileUtil.del("E:/temps/ops/temps/db/20231104-ops.db");

        SpringApplication.run(OpsServerApplication.class, args);
    }

}
